﻿// -----------------------------------------------------------------------------
// 园丁,是个很简单的管理系统
//  gitee:https://gitee.com/hgflydream/Gardener 
//  issues:https://gitee.com/hgflydream/Gardener/issues 
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Furion.DataEncryption;
using Gardener.Attributes;
using Gardener.Enums;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Gardener.Core.Entites
{
    /// <summary>
    /// 车辆限制信息表
    /// </summary>
    [Description("车辆信息")]
    public class Shield : Entity, ILockEntity
    {
        /// <summary>
        /// 车牌限制
        /// </summary>
        [Required,StringLength(32)]
        [DisplayName("车牌号")]
        public string ShieldNumber { get; set; }
        /// <summary>
        /// 种类
        /// </summary>
        [Required(ErrorMessage = "不能为空"), DefaultValue(ShieldType.After)]
        public ShieldType ShieldType { get; set; }
        /// <summary>
        /// 申请人
        /// </summary>
        [MaxLength(20)]
        [DisplayName("申请人")]
        public string ApplyName { get; set; }
        /// <summary>
        /// 是否锁定
        /// </summary>
        [DisplayName("是否锁定")]
        public bool IsLocked { get; set; }
    }
}